package net.code.btalk.ui;

import net.rim.device.api.system.Display;
import net.rim.device.api.ui.Color;
import net.rim.device.api.ui.Font;
import net.rim.device.api.ui.XYEdges;
import net.rim.device.api.ui.decor.Background;
import net.rim.device.api.ui.decor.BackgroundFactory;
import net.rim.device.api.ui.decor.Border;
import net.rim.device.api.ui.decor.BorderFactory;

public class Constants {
	public final static String IMAGE_BACKGROUND_LOGIN = "img/wood_pattern_1.png";
	public final static String IMAGE_HOODEMIA_LOGO = "img/hoodemia_logo_spaced.png";
	public final static String IMAGE_HOODEMIA_LETTER = "img/hoodemia_letter.png";
	public final static String IMAGE_USERNAME_ICON = "img/person.png";
	public final static String IMAGE_PASSWORD_ICON = "img/lock.png";
	public final static String IMAGE_EMAIL_ICON = "img/envelope.png";
	public final static String IMAGE_PASSWORD_CONFIRM_ICON = "img/lock_checked.png";
	
	public final static XYEdges ICON_FIELD_PADDING = new XYEdges(0, 5, 0, 5);
	public final static XYEdges TEXT_FIELD_PADDING = new XYEdges(2, 2, 2, 5);
	
	public final static XYEdges FORM_SECTION_H_PADDING = new XYEdges(0, Display.getWidth() / 20, 0, Display.getWidth() / 20);

	public final static Font FONT_BOLD_STYLE = Font.getDefault().derive(
			Font.BOLD);
	public final static Font FONT_BOLD_SMALL_STYLE = Font.getDefault().derive(
			Font.BOLD, 20);
	public final static Font FONT_CHAT_BOLD_UNDERLINED_STYLE = Font.getDefault().derive(
			Font.BOLD|Font.UNDERLINED, 22);
	public final static Font FONT_CHAT_BOLD_STYLE = Font.getDefault().derive(
			Font.BOLD, 22);
	public final static Font FONT_CHAT_PLAIN_STYLE = Font.getDefault().derive(
			Font.PLAIN, 22);

	public final static XYEdges BUTTON_PADDING = new XYEdges(5, 50, 5, 50);
	public final static XYEdges IMAGEBUTTON_PADDING = new XYEdges(0, 20, 0, 20);
	public final static Border SIMPLE_BORDER = BorderFactory
			.createSimpleBorder(new XYEdges(1, 1, 1, 1), Border.STYLE_SOLID);
	public final static Border SIMPLE_GRAY_BORDER = BorderFactory
		.createSimpleBorder(new XYEdges(1, 1, 1, 1), new XYEdges(0xcccccc, 0xaaaaaa, 0xaaaaaa, 0xaaaaaa), Border.STYLE_SOLID);
	public final static Border SIMPLE_ORANGE_BORDER = BorderFactory
	.createSimpleBorder(new XYEdges(1, 1, 1, 1), new XYEdges(0xff8c00, 0xff8c00, 0xff8c00, 0xff8c00), Border.STYLE_SOLID);
	
	public final static Background BUTTON_BACKGROUND_GREY_GRADIENT = BackgroundFactory
			.createLinearGradientBackground(0xeeeeee, 0xeeeeee, 0x999999,
					0x999999);
	public final static Background BUTTON_BACKGROUND_BLUE_GRADIENT = BackgroundFactory
			.createLinearGradientBackground(0x00CCFF, 0x00CCFF, 0x0066FF,
					0x0066FF);
	public final static Background TITLEBAR_BACKGROUND_BLACK_GRADIENT = BackgroundFactory
			.createLinearGradientBackground(0x444444, 0x444444, 0x000000,
					0x000000);
	
	public final static Background BACKGROUND_WHITE_PLAIN = BackgroundFactory
			.createSolidBackground(Color.WHITE);
	public final static Background BACKGROUND_LIGHTGREY_PLAIN = BackgroundFactory
		.createSolidBackground(Color.WHITESMOKE);
	public final static Background BACKGROUND_LIGHTGREY_GRADIENT = BackgroundFactory
			.createLinearGradientBackground(0xffffff, 0xffffff, 0xdddddd,
					0xdddddd);
	public final static Background BACKGROUND_MODERATEGREY_GRADIENT = BackgroundFactory
	.createLinearGradientBackground(0xffffff, 0xffffff, 0xcccccc,
			0xcccccc);
}
